<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/10/25
 * Time: 11:16
 */

namespace App\Http\Controllers;
use App\News;

class NewsController extends Controller
{
    public function index(){
//        return '这是个新闻首页';
        //返回视图
//        return view();
        //返回模型
        return News::getString();
    }
    public function detail($id){
        return view('news/detail',[
            'id'=>$id
        ]);
    }


}